<? 
	require_once('../fun/functions.php');
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login to &psi; Database</title>
<? include ("../inc/required-links.php") ?>
</head>

<body>
<div id="wrapper">
	<div id="l_l"></div> 
    <div id="left">
		<?php include ('../nav/home/nav.php') ?>
    </div>
    <div id="main">
		<?php include ('../inc/header.php') ?>
        <div id="t_bg"></div>
        <div id="content">
			<div class="otstup">
            	<div id="main_left">
                	<div class="corners" style="width:auto; margin:auto;">
                    	<div class="text">
                        	<p>
                            <!--
                            	<? //if(IsLoggedIn()): ?>
                                	Hello <? //$user = GetCurrentUser(); echo $user['name']; ?>
                                <? //else: ?>
                                	<a role="button" class="btn btn-mini" href="../accounts/login.php">Login Here</a>
                                <? //endif ?>
                                
                                <br /><br /><br /><br />-->
                                
                                <!-- FB User -->
								<? if($fbUser): ?>
                                    <img src="http://graph.facebook.com/<?=$fbUser?>/picture" />
                                    <a href="<?=$facebook->getLogoutUrl()?>">Log Out</a>
                                <? else: ?>
                                    <a class="btn btn-primary" href="<?=$facebook->getLoginUrl(array('scope' => 'read_stream, friends_likes'))?>">
                                        Log in with Facebook
                                    </a>
                                <? endif; ?>
                            </p>
                        </div>
                    </div>
                </div>
                <div id="right">
					<?php include ('../inc/cat_box1.php') ?>
					<?php include ('../inc/cat_box3.php') ?>
					<?php include ('../inc/cat_box4.php') ?>
					<?php include ('../inc/sn_links.php') ?>
                </div>
        		<div class="clear"></div>
        	</div>
        </div>
        <div class="clear"></div>  
        <div id="foot">
        	<?php include ('../inc/footer.php') ?>
		</div>
		<?php include ('../inc/copywright.php') ?>
        </div>
<div class="clear"></div> 
</div>
</body>
</html>
